package com.zl.rbac.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 操作用户角色中间表
 * @InterfaceName: UserRoleMapper
 * @author: suke
 * @since: 2021/1/13 13:51
 */
@Mapper
@Repository
public interface UserRoleMapper {
    /**
     *
     * @Title: 根基角色id删除
     * @param rid  角色id
     * @return void
     * @author: suke
     * @since: 2021/1/11 15:55
     */
    public void  deleteByRoleId(Integer rid) throws Exception;


    /**
     *
     * @Title: 插入数据
     * @param rid: 角色id
     * @param uid: 用户id
     * @return void
     * @author: suke
     * @since: 2021/1/13 13:53
     */
    public  void insert( @Param("uid") Integer uid,@Param("rid") Integer rid) throws Exception;



    /**
     *
     * @Title: 根基用户id删除
     * @param uid  用户id
     * @return void
     * @author: suke
     * @since: 2021/1/11 15:55
     */
    public void  deleteByUserId(Integer uid) throws Exception;
}
